<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Userid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userid" data-rule="required" class="form-control" name="row[userid]" type="text" value="{$row.userid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Groupname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-groupname" class="form-control" name="row[groupname]" type="text" value="{$row.groupname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Checkin_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-checkin_type" class="form-control" name="row[checkin_type]" type="text" value="{$row.checkin_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Exception_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exception_type" class="form-control" name="row[exception_type]" type="text" value="{$row.exception_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Checkin_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-checkin_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[checkin_time]" type="text" value="{:$row.checkin_time?datetime($row.checkin_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Location_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-location_title" class="form-control" name="row[location_title]" type="text" value="{$row.location_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Location_detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-location_detail" class="form-control" name="row[location_detail]" type="text" value="{$row.location_detail|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wifiname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wifiname" class="form-control" name="row[wifiname]" type="text" value="{$row.wifiname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Notes')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-notes" class="form-control" name="row[notes]" type="text" value="{$row.notes|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wifimac')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wifimac" class="form-control" name="row[wifimac]" type="text" value="{$row.wifimac|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mediaids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mediaids" class="form-control" name="row[mediaids]" type="text" value="{$row.mediaids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lat" class="form-control" name="row[lat]" type="text" value="{$row.lat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng" class="form-control" name="row[lng]" type="text" value="{$row.lng|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deviceid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deviceid" class="form-control" name="row[deviceid]" type="text" value="{$row.deviceid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sch_checkin_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sch_checkin_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sch_checkin_time]" type="text" value="{$row.sch_checkin_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Groupid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-groupid" class="form-control" name="row[groupid]" type="number" value="{$row.groupid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Timeline_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-timeline_id" data-rule="required" data-source="timeline/index" class="form-control selectpage" name="row[timeline_id]" type="text" value="{$row.timeline_id|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
